package org.monkey.example.pay.entity.dto;

import java.math.BigDecimal;
import lombok.Data;
import org.monkey.example.pay.entity.po.UserAmountPo;


@Data
public class UserAmountDto {

  private Long id;

  private Long accountId;

  private BigDecimal totalAmount;

  public UserAmountDto(UserAmountPo userAmountPo) {
    this.id = userAmountPo.getId();
    this.accountId = userAmountPo.getAccountId();
    this.totalAmount = userAmountPo.getTotalAmount();
  }

}
